﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Chess.Led"
	x:Name="UserControl" d:DesignHeight="480" Width="50" Height="50">
	<UserControl.Resources>
		<Storyboard x:Key="TurnOff">
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.2500000" Value="#0000FFFE"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.2500000" Value="#958376FF"/>
			</ColorAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="TurnOn">
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.2500000" Value="#FF00FFFE"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.2500000" Value="#9576FFF7"/>
			</ColorAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Flash" RepeatBehavior="Forever" >
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="#0000FFFE"/>
				<SplineColorKeyFrame KeyTime="00:00:01.0000000" Value="#FF00FFFE"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse1" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="#958376FF"/>
				<SplineColorKeyFrame KeyTime="00:00:01.0000000" Value="#9576FFF7"/>
			</ColorAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded"/>
	</UserControl.Triggers>

	<Grid x:Name="LayoutRoot">
		<Ellipse Fill="#FF004949" Stroke="Black"/>
		<Ellipse x:Name="ellipse" Fill="#0000FFFE" StrokeThickness="5">
			<Ellipse.Effect>
				<BlurEffect Radius="1" RenderingBias="Quality"/>
			</Ellipse.Effect>
			<Ellipse.Stroke>
				<RadialGradientBrush>
					<GradientStop Color="#FF343434" Offset="0.806"/>
					<GradientStop Color="#FF343434" Offset="1"/>
					<GradientStop Color="DarkGray" Offset="0.875"/>
				</RadialGradientBrush>
			</Ellipse.Stroke>
		</Ellipse>
		<Ellipse x:Name="ellipse1" Margin="5">
			<Ellipse.Fill>
				<RadialGradientBrush RadiusX="0.687" RadiusY="0.687">
					<GradientStop Color="#958376FF"/>
					<GradientStop Color="#66000000" Offset="1"/>
				</RadialGradientBrush>
			</Ellipse.Fill>
		</Ellipse>
	</Grid>
</UserControl>